<ion-view title="故障申报">  
<ion-content ng-controller="GzsbCtrl">
<input type="hidden" name="department" ng-model='formData.department' value="{{department}}">
  	<input type="hidden" name="username" ng-model='formData.username' value="{{username}}">
	
<div class="list" style="box-shadow: 0px 5px 5px #888888;background-color: #f2f2f2;">
	<div class="row">
	  <div class="col col-50">事件单号：-- </div>
	  <div class="col col-50">状态：新建</div>
	</div>
	<div class="row">
	  <div class="col col-50">用户名：{{userinfo.username}}</div>
	  <div class="col col-50">部门：{{userinfo.department}}</div>
	</div>
	<div class="row">
	  <div class="col col-50">电话：{{userinfo.phone}}</div>
	  <div class="col col-50">邮件：{{userinfo.email}}</div>
	</div>
</div>
<div class="list" class="padding">
	<!--
	<label class="item item-input item-select">
    <div class="input-label">
      严重级别
    </div>
    <select class="form-control" ng-model='formData.impact'>
	    				<option value="">--请选择--</option>
	    				<option value="EVENT_IMPACT_05">严重</option>
	    				<option value="EVENT_IMPACT_10">高</option>
	    				<option value="EVENT_IMPACT_20">中</option>
	    				<option value="EVENT_IMPACT_30">低</option>

	    			</select>
  </label>
  <label class="item item-input item-select">
    <div class="input-label">
      紧急程度
    </div>
    <select class="form-control" ng-model='formData.urgency'>
	    				<option value="">--请选择--</option>
	    				
	    				<option value="EVENT_EMERGENCYLEVEL_05">严重</option>
	    				<option value="EVENT_EMERGENCYLEVEL_10">高</option>
	    				<option value="EVENT_EMERGENCYLEVEL_20">中</option>
	    				<option value="EVENT_EMERGENCYLEVEL_30">低</option>
	    				
	    			</select>
  </label>
  <label class="item item-input item-select">
    <div class="input-label">
      优先级
    </div>
    <select class="form-control" ng-model='formData.priority'>
	    				<option value="">--请选择--</option>
	    				<option value="EVENT_PRIORITY_P1">P1</option>
	    				<option value="EVENT_PRIORITY_P2">P2</option>
	    				<option value="EVENT_PRIORITY_P3">P3</option>
	    				<option value="EVENT_PRIORITY_P4">P4</option>
	    			</select>
  </label>
-->
	  <label class="item item-input">
        <input type="text" placeholder="标题" ng-model='formData.title' readOnly>
    </label>
    <label class="item item-input">
        <textarea rows="6" placeholder="请描述故障时使用的IT设备或系统名称、故障现象说明。" ng-model='formData.description'></textarea>
    </label>

    <label class="item item-divider">
    
      故障类型
    
    
  </label>

<div class="list typelist">
    <div class="row">
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="计算机故障" ng-click="selecttype('计算机故障')">
          <div class="item-content" >
            <i class="fa fa-desktop"></i>计算机故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="打印机故障" ng-click="selecttype('打印机故障')">
          <div class="item-content" >
            <i class="fa fa-print"></i>打印机故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

    <div class="row">
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="网络故障" ng-click="selecttype('网络故障')" >
          <div class="item-content" >
            <i class="fa fa-sitemap"></i>网络故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="会议系统故障" ng-click="selecttype('会议系统故障')">
          <div class="item-content" >
            <i class="fa fa-comments-o"></i>会议系统故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

    <div class="row">
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="VPN及移动应用故障" ng-click="selecttype('VPN及移动应用故障')" >
          <div class="item-content" >
            <i class="fa fa-mobile"></i>VPN及移动应用故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="IP电话使用故障" ng-click="selecttype('IP电话使用故障')">
          <div class="item-content" >
            <i class="fa fa-phone"></i>IP电话使用故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

        <div class="row">
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="应用系统故障ERP\MES等" ng-click="selecttype('应用系统故障ERP\MES等')" >
          <div class="item-content" >
            <i class="fa fa-cube"></i>应用系统故障ERP\MES等
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio" >
          <input type="radio" name="category" ng-model='formData.category' value="其它故障" ng-click="selecttype('其它故障')">
          <div class="item-content" >
            <i class="fa fa-info"></i>其它故障
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

  </div>

  	<div class="" ng-click="showActionsheet()" style="margin-top:10px;">
        <a class="item  item-icon-right" href="javascript:void(0)">
          上传图片
          <i class="icon ion-ios-camera"></i>
        </a>
   </div>

	<div class="item" ng-show="showimgdiv"> 
    <button class="button button-small button-assertive" style="position: absolute;top: 16px;left: 16px;z-index: 999;" ng-click="delimg();">删除</button> 
		<img src="{{images_url}}" style="max-width:100%;">  
	</div> 
  

			
</div>
<div class="padding">
	<button class="button button-block button-positive" ng-click="eventDispatch()">
        提交
    </button>
</div>
</ion-content>
</ion-view>